import request from '@/utils/request'

// 查询考试回答列表
export function listExamPaperTopicAnswer(query) {
  return request({
    url: '/exam/examPaperTopicAnswer/list',
    method: 'get',
    params: query
  })
}

// 查询考试回答详细
export function getExamPaperTopicAnswer(id) {
  return request({
    url: '/exam/examPaperTopicAnswer/' + id,
    method: 'get'
  })
}

// 新增考试回答
export function addExamPaperTopicAnswer(data) {
  return request({
    url: '/exam/examPaperTopicAnswer',
    method: 'post',
    data: data
  })
}

// 修改考试回答
export function updateExamPaperTopicAnswer(data) {
  return request({
    url: '/exam/examPaperTopicAnswer',
    method: 'put',
    data: data
  })
}

// 删除考试回答
export function delExamPaperTopicAnswer(id) {
  return request({
    url: '/exam/examPaperTopicAnswer/' + id,
    method: 'delete'
  })
}
